home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / _IsPressed.au3 < prev    next >
Text File  |  2007-09-08  |  198b  |  12 lines

  1. #include <Misc.au3>
  2.  
  3. $dll = DllOpen("user32.dll")
  4.  
  5. While 1
  6.     Sleep ( 250 )
  7.     If _IsPressed("23", $dll) Then
  8.         MsgBox(0,"_IsPressed", "End Key Pressed")
  9.         ExitLoop
  10.     EndIf
  11. WEnd
  12. DllClose($dll)